process.env.VUE_APP_VERSION = require('./package.json').version
module.exports = {
    publicPath: "./",
    lintOnSave: false, //关闭eslint
    outputDir: process.env.outputDir, 
    devServer:{
        proxy: {
           "/api":{
               target:"http://localhost:8080",
               changeOrigin:true,
               ws:true,
               pathRewrite:{
                    "^api":''
               }
           }
        },
    },

    configureWebpack: {
        module:{
            rules:[{
                test:/\.mjs$/,
                include: /node_modules/,
                type: "javascript/auto"
            }]
        },
    }
}